<?php
declare (strict_types = 1);

namespace app\validate\admin;

use think\Validate;

class AdminConfigValidate extends Validate
{
    protected $field = [
        'website'               => '网站名称',
        'bei_an'                => '备案号',
        'copyright'             => '版权信息',
        'watermark_switch'      => '版权水印',
    ];

    protected $rule = [
        'website'               => 'require|chsDash|max:50',
        'bei_an'                => 'require|chsDash|max:60',
        'copyright'             => 'require|chsDash|max:50',
        'watermark_switch'      => 'require|integer|in:0,1',
    ];

    protected $message = [];
}
